import { action, observable } from "mobx";

export default class TaskViewCustomPageStore {
    iframe;

    @observable pageType = "CUSTOM";

    @action init = (pageObj) => {
        const { page } = pageObj;
        const { pageType, hrefLinkUrl = "" } = page;
        this.pageType = pageType;
        if (pageType === 'CUSTOM') {
            this.iframe.src = hrefLinkUrl;
        }
    }
}